<?php
echo "  Pick a Character</br>";


echo form_open('main/select_character_to_play');
echo validation_errors('<p class="error">','</p>'); 

foreach ($data as $key => $row) {
    
    //echo ($row->getName()) . ($row->getId());
    $family_id = $row -> getWhichFamily();
    
    //echo $name;
    
    echo form_radio('characterChoice',$row->getId()).  $row->getCharacterName() . " of family $family_id. Prestige of " . $row->getPrestige() . " ";
    // how many regions does he own?
    // is he married?
    // is he at war?
    // does he have children?
    // what is his title?
    
    
    echo "</br>";
}



echo form_submit('submit','Select');